package com.emode.entity;

import java.util.HashSet;
import java.util.Set;

public class SysPrivilege implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8443196428709221944L;
	private Integer pid;	//自增长id
	private String name;	//权限名称	
	private String url;		//权限路径	
	private String icon;	//图标	
	//private Integer parentid;	//父id
	private SysPrivilege parentid;
	private Set<SysPrivilege> children = new HashSet<SysPrivilege>();
	
	//配置多对多的关系
	private Set<SysGroup> group = new HashSet<SysGroup>();//
	
	public SysPrivilege() {
		super();
	}
	//全部构造
	public SysPrivilege(Integer pid, String name, String url, String icon,
			SysPrivilege parentid, Set<SysPrivilege> children,
			Set<SysGroup> group) {
		super();
		this.pid = pid;
		this.name = name;
		this.url = url;
		this.icon = icon;
		this.parentid = parentid;
		this.children = children;
		this.group = group;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	
	
	public SysPrivilege getParentid() {
		return parentid;
	}
	public void setParentid(SysPrivilege parentid) {
		this.parentid = parentid;
	}
	public Set<SysPrivilege> getChildren() {
		return children;
	}
	public void setChildren(Set<SysPrivilege> children) {
		this.children = children;
	}
	public Set<SysGroup> getGroup() {
		return group;
	}
	public void setGroup(Set<SysGroup> group) {
		this.group = group;
	}
	
}
